package pers.lmd.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @Author lmd
 * @Date 2023/5/1 2:19
 */
@Data
@Schema(description = "学生端请假表数据传输对象")
public class NoteDTO {
    @Schema(description = "离开时间",requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime leaveTime;

    @Schema(description = "回来时间",requiredMode = Schema.RequiredMode.REQUIRED)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime backTime;

    @Schema(description = "去向",requiredMode = Schema.RequiredMode.REQUIRED)
    private String travel;

    @Schema(description = "理由",requiredMode = Schema.RequiredMode.REQUIRED)
    private String reason;

    @Schema(description = "审批状态")
    private final Integer applyStatus =1;
}
